<template>
  <div id="wrapper">
    <NavLeft></NavLeft>
    <div id="content-wrapper" class="d-flex flex-column">
      <div id="content">
        <NavTop></NavTop>
        <div class="container-fluid">
          <router-view></router-view>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import NavLeft from "../components/NavLeft";
import NavTop from "../components/NavTop";

export default {
  name: "Index",
  components: {NavTop, NavLeft},
  beforeCreate() {
    if (sessionStorage.getItem("isLogin")==null){
      this.$message.warning("请先登录");
      this.$router.push({path:'/login'});
    }
  }
}
</script>

<style scoped>

</style>